package com.caption.design.adapter;

/**
 * 适配器模式主要为了适配老代码而实现的
 */
public class TestAdapter {

    public static void main(String[] args) {
        VoltageSource source = new VoltageSource();
        VoltageAdapter adapter = new VoltageAdapter(source);
        System.out.println(adapter.output5V());
    }
}
